import { request2 } from '@/utils/request'
// 请求拦截

// 请求面试经验的数据
export function technicAPI (params) {
  return request2({
    url: '/articles/technic',
    params
  })
}
// 拿验证码
export const loginauthAPI = (data) => {
  return request2({
    url: '/au/code',
    method: 'post',
    data
  })
}
// 登录
export const loginAPI = (data) => {
  return request2({
    url: '/au/login',
    method: 'post',
    data
  })
}

// 封装一个获取文章详情的接口
export function detailAPI (id) {
  return request2({
    url: `/articles/technic/${id}`
  })
}
